package com.itheima.day03demo;

public class Test {
    public static void main(String[] args) {

        Order.Inner1 inner1 =new Order().new Inner1();
        inner1.show();


        Order.Inner2 inner2 =new Order().new Inner2();
        inner2.show();
    }
}
class Order {
    int a = 10;
    static int b =20;

    //实例成员内部类
    class Inner1{
        public void show(){
            System.out.println(a);
            System.out.println(b);
        }
    }
    //静态成员内部类
    //可以直接访问外部类的静态成员
    class Inner2{
        public void show(){
            System.out.println(b);
        }
    }
}